﻿using System;
using System.Collections.Generic;
using Ymca.Web.Services.Interfaces;
using Ymca.Entities;
using Ymca.Web.Models.Blog;

namespace Ymca.Web.Services
{
    public class PostBuilder: IPostBuilder
    {
        public Post Create(CreatePostViewModel viewModel)
        {
			Post post = new Post();
			post.Date = DateTime.Now;
			post.Title = viewModel.Title;
			post.Body = viewModel.Body;
			post.Gallery = new GalleryGroup();
			post.Comments = new List<Comment>();

			return post;
        }
    }
}